package com.kikoulol.jarmory.extractor.xml;

import com.kikoulol.jarmory.extractor.enums.Regions;

public abstract class AbstractArmoryXmlFile extends AbstractXmlFile
{
  private Regions region;

  /**
   * 
   * @param region
   * @param fileUrl
   */
  public AbstractArmoryXmlFile(Regions region, String fileUrl)
  {
    super(region.url() + fileUrl);
    this.region = region;
  }


  public final Regions getRegion()
  {
    return region;
  }
  
  protected static String urlEncode(String urlToEncode)
  {
    // WoW Armory specific. It musts be %20 otherwise
    return AbstractXmlFile.urlEncode(urlToEncode).replace("%20", "+");
  }
}
